//
//  CalendarNotDataView.swift
//  GreenDeal
//
//  Created by Moennig Q on 2023/3/22.
//

import UIKit

class CalendarNotDataView: View {
    override func setUpView() {
        self.backgroundColor = UIColor(hexStr: Constant.SystemBackColor)
        //
        let backView = UIView()
        backView.backgroundColor = UIColor(hexStr: Constant.SystemBackColor)
        self.addSubview(backView)
        backView.snp.makeConstraints { make in
            make.height.width.greaterThanOrEqualTo(0)
            make.center.equalToSuperview()
        }
        //faild imageview
        let faildImageView = UIImageView(image: R.image.calender_nodata_background())
        backView.addSubview(faildImageView)
        faildImageView.snp.makeConstraints { (make) in
            make.top.equalToSuperview()
            make.height.equalTo(192)
            make.width.equalTo(256)
            make.left.right.equalToSuperview()
        }
        //networkAccessFailure
        let tipOneLabel = ContentLabel(R.font.interBold(size: 18))
        tipOneLabel.textAlignment = .center
        tipOneLabel.text = R.string.localizable.noJobsToInstall()
        backView.addSubview(tipOneLabel)
        tipOneLabel.snp.makeConstraints { make in
            make.top.equalTo(faildImageView.snp.bottom).offset(20)
            make.left.right.equalToSuperview()
            make.height.greaterThanOrEqualTo(0)
            make.bottom.equalToSuperview()
        }
    }
}
